<template>
  <div>
    <div slot="header" class="clearfix">
      <div>
        <i class="el-icon-coin" />
        <span>数据列表</span>
      </div>
      <div>

        <el-button class="el-button-search" @click="add" icon="el-icon-circle-plus-outline" v-show="shows"> 添加</el-button>
        <el-button class="el-button-search" @click="$router.push('/ProductAdd')" icon="el-icon-download">导出</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'KodaiCardDAta',
  props: {
    shows: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {

    };
  },

  mounted() {

  },

  methods: {
    add() {
      this.$emit('add')
    }
  },
};
</script>

<style lang="scss" scoped>
.clearfix {
  display: flex;
  line-height: 50px;
  font-size: 20px;
  justify-content: space-between;
  align-items: center;
}


.el-card__header {
  padding: 3px 13px !important;
}

.el-button-search {
  float: right;
  padding: 3px 0;
  width: 70px;
  height: 35px;
  margin-left: 20px;
}
</style>